package com.learn.prototype.protoyype;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: BcLine </p>
 */
@Setter
@Getter
public class BcLine extends Line {

    private String name;

    public BcLine(String name) {
        this.name = name;
    }

    public BcLine(BcLine bcLine) {
        this.name = bcLine.getName();
    }

    @Override
    public Line copy() throws CloneNotSupportedException {
        return new BcLine(this);
    }
}
